}
.ws-switcher-active-left {
- width: 98px;
height: 98px;
border: 0px;
background: rgba(255,255,255,0.5);
}
.ws-switcher-active-right {
- width: 98px;
height: 98px;
border: 0px;
background: rgba(255,255,255,0.5);
}
.ws-switcher-box {
- width: 96px;
height: 96px;
border: 2px solid rgba(85,85,85,0.5);
background: transparent;
height: global.screen_height });
global.stage.add_actor(this.actor);
+ this._scaleWidth = global.screen_width / global.screen_height;
+
this._container = new St.BoxLayout({ style_class: "workspace-switcher-container" });
this._list = new St.BoxLayout({ style_class: "workspace-switcher" });
- this._redraw();
-
this._container.add(this._list);
+
this.actor.add_actor(this._container);
+ this._redraw();
+
this._position();
this.actor.show();
indicator = new St.Bin({ style_class: 'ws-switcher-box' });
this._list.add(indicator);
+ indicator.set_width(Math.round(indicator.get_height() * this._scaleWidth));
if (i < global.screen.n_workspaces - 1) {
let spacer = new St.Bin({ style_class: 'ws-switcher-spacer' });